const { ipcMain, dialog } = require("electron");

ipcMain.handle("on-alert-event", (e, msg) => {
    dialog.showMessageBox({
        message: msg,
        type: "error"
    });
});